package com.itheima.reggie.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("orders")
public class Order implements Serializable {
    private static final long serialVersionUID = 1L; //序列化标识符，确保在不同编译器上反序列化的uid相等。
    private Long id;
    private String number;
    private Integer status;
    private Long userId;
    private Long addressBookId;
    @TableField("order_date")
    private LocalDateTime orderTime;
    @TableField("check_out")
    private LocalDateTime endTime;
    private Integer payMethod;
    @TableField("acount")
    private BigDecimal amount;
    private String remark;
    private String phone;
    private String address;
  //  @TableField(exist = false)
    @TableField("username")
    private String userName;
    private String consignee;
}
